﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TB_DJSKCBDNEW.aspx.cs"
    Inherits="SkWeb.FYCS.TB_DJSKCBDNEW" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>单井射孔成本</title>
    <link href="../../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script src="../js/calendar.js" type="text/javascript"></script>
    <style type="text/css">
        input
        {
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="31" height="22">
                <img src="../images/module.gif" width="20" height="22" alt="" />
            </td>
            <td style="width: 310px; text-align: left;">
                &nbsp;<asp:Label ID="lblPatd" runat="server"></asp:Label>
            </td>
            <td width="990" align="right">
                <img src="../images/search.gif" alt="搜索" />井号:
                <asp:TextBox ID="txtName" runat="server" CssClass="input1"></asp:TextBox>
                <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" CausesValidation="False"
                    OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td bgcolor="#3CB6E5" height="5px">
            </td>
        </tr>
    </table>
    <table cellpadding="1" cellspacing="1" border="0" class="tabGg" width="99%">
        <tr>
            <td rowspan="23" width="10%" bgcolor="#FFFFFF" class="r_bg" style="vertical-align: top;">
                <asp:ListBox ID="lbxJH" runat="server" Width="165px" AutoPostBack="true" Height="500px"
                    Font-Size="Large" OnSelectedIndexChanged="lbxJH_SelectedIndexChanged" DataTextField="JH"
                    DataValueField="ID"></asp:ListBox>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" ShowPageIndex="true"
                    UrlPaging="false" NumericButtonTextFormatString="[{0}]" CustomInfoHTML=" " ShowCustomInfoSection="left"
                    CustomInfoSectionWidth="3px" FirstPageText="首页" LastPageText="末页" NextPageText="下页"
                    PageSize="100" PrevPageText="上页" Font-Names="Arial" BackColor="#C1EAF7" OnPageChanged="AspNetPager1_PageChanged"
                    Visible="true">
                </webdiyer:AspNetPager>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" style="vertical-align: top; height: 100%;" class="tabGg">
                    <tr height="30px">
                        <td width="30%" bgcolor="#FFFFFF" class="l_bg" colspan="2" style="font-size: 14px;
                            font-weight: bold;">
                            基本信息
                        </td>
                    </tr>
                    <tr height="25px">
                        <td colspan="2" bgcolor="#FFFFFF">
                            <table cellpadding="1" cellspacing="1" border="0" class="tabGg" width="100%">
                                <tr bgcolor="#FFFFFF">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        井号:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:HiddenField ID="txtID" runat="server" />
                                        <asp:TextBox ID="txtJH" runat="server" />
                                        <asp:RequiredFieldValidator ID="JH_Null_Check" runat="server" Width="5px" ControlToValidate="txtJH"
                                            Display="Dynamic" ErrorMessage="井号不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        设计日期:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtSJRQ" runat="server" CssClass="input1" onfocus="calendar()"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="SJRQ_Null_Check" runat="server" Width="5px" ControlToValidate="txtSJRQ"
                                            Display="Dynamic" ErrorMessage="设计日期不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr bgcolor="#FFFFFF" height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪型:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="ddlst_QX" runat="server" AppendDataBoundItems="true" DataTextField="QX"
                                            DataValueField="QX" Width="130px" OnSelectedIndexChanged="ddlst_QX_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪型2:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="ddlst_ZYLQX" runat="server" Width="220px" AppendDataBoundItems="true"
                                            DataTextField="ZYLQX" DataValueField="ZYLQX" OnSelectedIndexChanged="ddlst_ZYLQX_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr bgcolor="#FFFFFF" height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹型:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="ddlst_DX" runat="server" AppendDataBoundItems="true" DataTextField="DX"
                                            DataValueField="DX" Width="130px">
                                        </asp:DropDownList>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        类型:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txt_LX" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr bgcolor="#FFFFFF" height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        复合类型:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txt_FHLX" runat="server"></asp:TextBox>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        射孔厚度:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txt_SKHD" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        施工方式:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="ddlst_SGFS" runat="server" AppendDataBoundItems="true" Width="130px"
                                            DataTextField="SGFS" DataValueField="SGFS" OnSelectedIndexChanged="ddlst_SGFS_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="SGFS_Null_Check" runat="server" Width="5px" ControlToValidate="ddlst_SGFS"
                                            Display="Dynamic" ErrorMessage="施工方式不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        车辆路途费:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="ddlst_CLLTF" runat="server" AppendDataBoundItems="true" Width="100px"
                                            DataTextField="CLLT" DataValueField="CLLTF" OnSelectedIndexChanged="ddlst_CLLTF_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr bgcolor="#FFFFFF" height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        固定费用:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtGDFY" runat="server" />
                                        <asp:RequiredFieldValidator ID="GDFY_Null_Check" runat="server" Width="5px" ControlToValidate="txtGDFY"
                                            Display="Dynamic" ErrorMessage="固定费用不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator17" runat="server"
                                            Width="5px" ControlToValidate="txtGDFY" Display="Dynamic" ErrorMessage="固定费用应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        折旧费用:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtZJF" runat="server" />
                                        <asp:RequiredFieldValidator ID="ZJF_Null_Check" runat="server" Width="5px" ControlToValidate="txtZJF"
                                            Display="Dynamic" ErrorMessage="折旧费不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator18" runat="server"
                                            Width="5px" ControlToValidate="txtZJF" Display="Dynamic" ErrorMessage="折旧费应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr bgcolor="#FFFFFF" height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        其他变动费用:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQTBDFY" runat="server" />
                                        <asp:RequiredFieldValidator ID="QTBDFY_Null_Check" runat="server" Width="5px" ControlToValidate="txtQTBDFY"
                                            Display="Dynamic" ErrorMessage="其他变动费用不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator19" runat="server"
                                            Width="5px" ControlToValidate="txtQTBDFY" Display="Dynamic" ErrorMessage="其他变动费用应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        项目:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtXM" runat="server" />
                                        <asp:RequiredFieldValidator ID="XM_Null_Check" runat="server" Width="5px" ControlToValidate="txtXM"
                                            Display="Dynamic" ErrorMessage="项目不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        井段底深:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJDDS" runat="server" />
                                        <asp:RequiredFieldValidator ID="JDDS_Null_Check" runat="server" Width="5px" ControlToValidate="txtJDDS"
                                            Display="Dynamic" ErrorMessage="井段底深不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator20" runat="server"
                                            Width="5px" ControlToValidate="txtJDDS" Display="Dynamic" ErrorMessage="井段底深应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        井段顶深:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJDDS1" runat="server" />
                                        <asp:RequiredFieldValidator ID="JDDS1_Null_Check" runat="server" Width="5px" ControlToValidate="txtJDDS1"
                                            Display="Dynamic" ErrorMessage="井段顶深不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator21" runat="server"
                                            Width="5px" ControlToValidate="txtJDDS1" Display="Dynamic" ErrorMessage="井段顶深应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        井段:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJD" runat="server" />
                                        <asp:RequiredFieldValidator ID="JD_Null_Check" runat="server" Width="5px" ControlToValidate="txtJD"
                                            Display="Dynamic" ErrorMessage="井段不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator22" runat="server"
                                            Width="5px" ControlToValidate="txtJD" Display="Dynamic" ErrorMessage="井段应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        井段/射开:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJDSK" runat="server" />
                                        <asp:RequiredFieldValidator ID="JDSK_Null_Check" runat="server" Width="5px" ControlToValidate="txtJDSK"
                                            Display="Dynamic" ErrorMessage="井段/射开不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator23" runat="server"
                                            Width="5px" ControlToValidate="txtJDSK" Display="Dynamic" ErrorMessage="井段/射开应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        结算类型:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="ddlstJSLX" runat="server" AppendDataBoundItems="true" DataTextField="JSLX"
                                            DataValueField="JSLX">
                                            <asp:ListItem Value=""></asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="JSLX_Null_Check" runat="server" Width="5px" ControlToValidate="ddlstJSLX"
                                            Display="Dynamic" ErrorMessage="结算类型不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="30px">
                        <td bgcolor="#FFFFFF" style="font-size: 14px; font-weight: bold;">
                            测算信息
                        </td>
                        <td bgcolor="#FFFFFF" style="font-size: 14px; font-weight: bold;">
                            对比信息
                        </td>
                    </tr>
                    <tr bgcolor="#FFFFFF" height="25px">
                        <td>
                            <table cellpadding="1" cellspacing="1" border="0" class="tabGg" width="100%">
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        单井收入:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtDJSR" runat="server" />
                                        <asp:RequiredFieldValidator ID="DJSR_Null_Check" runat="server" Width="5px" ControlToValidate="txtDJSR"
                                            Display="Dynamic" ErrorMessage="单井收入不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        计数:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJS" runat="server" />
                                        <asp:RequiredFieldValidator ID="JS_Null_Check" runat="server" Width="5px" ControlToValidate="txtJS"
                                            Display="Dynamic" ErrorMessage="计数不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="JS_check" runat="server" Width="5px" ControlToValidate="txtJS"
                                            Display="Dynamic" ErrorMessage="基数应为数字" Height="5px" ValidationExpression="^[0-9]*$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹数(发):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtDS" runat="server" onblur="GetDHe();" />
                                        <asp:RequiredFieldValidator ID="DS_Null_Check" runat="server" Width="5px" ControlToValidate="txtDS"
                                            Display="Dynamic" ErrorMessage="弹数不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" Width="5px"
                                            ControlToValidate="txtDS" Display="Dynamic" ErrorMessage="弹数应为数字" Height="5px"
                                            ValidationExpression="^[0-9]*$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹单价(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtDDJ" runat="server" onblur="GetDHe();" />
                                        <asp:RequiredFieldValidator ID="DDJ_Null_Check" runat="server" Width="5px" ControlToValidate="txtDDJ"
                                            Display="Dynamic" ErrorMessage="弹单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" Width="5px"
                                            ControlToValidate="txtDDJ" Display="Dynamic" ErrorMessage="弹单价应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹金额(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function GetDHe() {
                                                var DS = document.getElementById("txtDS").value;
                                                if (DS == "") {
                                                    DS = 0;
                                                }
                                                var DDJ = document.getElementById("txtDDJ").value;
                                                if (DDJ == "") {
                                                    DDJ = 0;
                                                }
                                                var he = parseFloat(DS) * parseFloat(DDJ);
                                                he = he.toFixed(2);
                                                document.getElementById("txtDJE").value = he;
                                                document.getElementById("txtDJESZ").value = he;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtDJE" runat="server" />
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹金额(数值):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtDJESZ" runat="server" />
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪长(米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQC" runat="server" onblur="GetCHe();" />
                                        <asp:RequiredFieldValidator ID="QC_Null_Check" runat="server" Width="5px" ControlToValidate="txtQC"
                                            Display="Dynamic" ErrorMessage="枪长不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" Width="5px"
                                            ControlToValidate="txtQC" Display="Dynamic" ErrorMessage="枪长应为数字，可以保留两位小数" Height="5px"
                                            ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪单价(元/米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQDJ" runat="server" onblur="GetCHe();" />
                                        <asp:RequiredFieldValidator ID="QDJ_Null_Check" runat="server" Width="5px" ControlToValidate="txtQDJ"
                                            Display="Dynamic" ErrorMessage="枪单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" Width="5px"
                                            ControlToValidate="txtQDJ" Display="Dynamic" ErrorMessage="枪单价应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪长2(米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQC2" runat="server" onblur="GetCHe();" />
                                        <asp:RequiredFieldValidator ID="QC2_Null_Check" runat="server" Width="5px" ControlToValidate="txtQC2"
                                            Display="Dynamic" ErrorMessage="枪长2不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" Width="5px"
                                            ControlToValidate="txtQC2" Display="Dynamic" ErrorMessage="枪长2应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪单价2(元/米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQDJ2" runat="server" onblur="GetCHe();" />
                                        <asp:RequiredFieldValidator ID="QDJ2_Null_Check" runat="server" Width="5px" ControlToValidate="txtQDJ2"
                                            Display="Dynamic" ErrorMessage="枪单价2不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server"
                                            Width="5px" ControlToValidate="txtQDJ2" Display="Dynamic" ErrorMessage="枪单价2应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪金额:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function GetCHe() {
                                                var QC = document.getElementById("txtQC").value;
                                                if (QC == "") {
                                                    QC = 0;
                                                }
                                                var QDJ = document.getElementById("txtQDJ").value;
                                                if (QDJ == "") {
                                                    QDJ = 0;
                                                }
                                                var QC2 = document.getElementById("txtQC2").value;
                                                if (QC2 == "") {
                                                    QC2 = 0;
                                                }
                                                var QDJ2 = document.getElementById("txtQDJ2").value;
                                                if (QDJ2 == "") {
                                                    QDJ2 = 0;
                                                }
                                                var he = parseFloat(QC) * parseFloat(QDJ);

                                                var he2 = parseFloat(QC2) * parseFloat(QDJ2);

                                                var zonghe = parseFloat(he) + parseFloat(he2);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtQJE").value = zonghe;
                                                document.getElementById("txtQJESZ").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtQJE" runat="server" Height="18px" onblur="getQDheji()" />
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪金额数值:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQJESZ" runat="server" />
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        夹层枪长(米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJCQC" runat="server" onblur="GetJCQHe()" />
                                        <asp:RequiredFieldValidator ID="JCQC_Null_Check" runat="server" Width="5px" ControlToValidate="txtJCQC"
                                            Display="Dynamic" ErrorMessage="夹层枪长不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server"
                                            Width="5px" ControlToValidate="txtJCQC" Display="Dynamic" ErrorMessage="夹层枪长应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        夹层枪单价(米/元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJCQDJ" runat="server" onblur="GetJCQHe()" />
                                        <asp:RequiredFieldValidator ID="JCQDJ_Null_Check" runat="server" Width="5px" ControlToValidate="txtJCQDJ"
                                            Display="Dynamic" ErrorMessage="夹层枪单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server"
                                            Width="5px" ControlToValidate="txtJCQDJ" Display="Dynamic" ErrorMessage="夹层枪单价应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        夹层枪金额(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function GetJCQHe() {
                                                var JCQC = document.getElementById("txtJCQC").value;
                                                if (JCQC == "") {
                                                    JCQC = 0;
                                                }
                                                var JCQDJ = document.getElementById("txtJCQDJ").value;
                                                if (JCQDJ == "") {
                                                    JCQDJ = 0;
                                                }

                                                var he = parseFloat(JCQC) * parseFloat(JCQDJ);

                                                he = he.toFixed(2);
                                                document.getElementById("txtJCQJE").value = he;
                                                document.getElementById("txtJCQJESZ").value = he;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtJCQJE" runat="server" onblur="getQDheji()" />
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        夹层枪金额(数值):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJCQJESZ" runat="server" />
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪、弹合计金额(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getQDheji() {
                                                var QJE = document.getElementById("txtQJE").value;
                                                if (QJE == "")
                                                { QJE = 0; }
                                                var JCQJE = document.getElementById("txtJCQJE").value;
                                                if (JCQJE == "")
                                                { JCQJE = 0; }
                                                var DJE = document.getElementById("txtDJE").value;
                                                if (DJE == "")
                                                { DJE = 0; }
                                                var zonghe = parseFloat(QJE) + parseFloat(JCQJE) + parseFloat(DJE);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtQDHJJE").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtQDHJJE" runat="server" onblur="getDJCLCB()" />
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        爆炸器材单井消耗(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtBZQCDJXH" runat="server" onblur="getDJCLCB()" />
                                        <asp:RequiredFieldValidator ID="BZQCDJXH_Null_Check" runat="server" Width="5px" ControlToValidate="txtBZQCDJXH"
                                            Display="Dynamic" ErrorMessage="爆炸器材单井消耗不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server"
                                            Width="5px" ControlToValidate="txtBZQCDJXH" Display="Dynamic" ErrorMessage="爆炸器材单井消耗应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        一般材料单井消耗(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getPTYBCL() {
                                                var YBCLDJXH = document.getElementById("txtYBCLDJXH").value;
                                                if (YBCLDJXH == "")
                                                { YBCLDJXH = 0; }
                                                var SGFS = document.getElementById("ddlst_SGFS").value;
                                                if (SGFS != "" && SGFS == "复合管输")
                                                { SGFS = 2120.92; }
                                                else {
                                                    SGFS = 0;
                                                }

                                                var zonghe = parseFloat(YBCLDJXH) + parseFloat(SGFS);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtPTYBCL").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtYBCLDJXH" runat="server" onblur="getPTYBCL()" />
                                        <asp:RequiredFieldValidator ID="YBCLDJXH_Null_Check" runat="server" Width="5px" ControlToValidate="txtYBCLDJXH"
                                            Display="Dynamic" ErrorMessage="一般材料单井消耗不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator14" runat="server"
                                            Width="5px" ControlToValidate="txtYBCLDJXH" Display="Dynamic" ErrorMessage="一般材料单井消耗应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        平摊一般材料:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtPTYBCL" runat="server" onblur="getDJCLCB()" />
                                        <asp:RequiredFieldValidator ID="PTYBCL_Null_Check" runat="server" Width="5px" ControlToValidate="txtPTYBCL"
                                            Display="Dynamic" ErrorMessage="平摊一般材料不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator15" runat="server"
                                            Width="5px" ControlToValidate="txtPTYBCL" Display="Dynamic" ErrorMessage="平摊一般材料应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        单井材料成本(元/口):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getDJCLCB() {
                                                var QDHJJE = document.getElementById("txtQDHJJE").value;
                                                if (QDHJJE == "")
                                                { QDHJJE = 0; }
                                                var BZQCDJXH = document.getElementById("txtBZQCDJXH").value;
                                                if (BZQCDJXH == "")
                                                { BZQCDJXH = 0; }
                                                var PTYBCL = document.getElementById("txtPTYBCL").value;
                                                if (PTYBCL == "")
                                                { PTYBCL = 0; }
                                                var zonghe = parseFloat(QDHJJE) + parseFloat(BZQCDJXH) + parseFloat(PTYBCL);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtDJCLCB").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtDJCLCB" runat="server" onblur="getDJCB()" />
                                        <asp:RequiredFieldValidator ID="DJCLCB_Null_Check" runat="server" Width="5px" ControlToValidate="txtDJCLCB"
                                            Display="Dynamic" ErrorMessage="单井材料成本不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        单井成本:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getDJCB() {
                                                //单井材料成本
                                                var DJCLCB = document.getElementById("txtDJCLCB").value;
                                                if (DJCLCB == "")
                                                { DJCLCB = 0; }
                                                //固定费用
                                                var GDFY = document.getElementById("txtGDFY").value;
                                                if (GDFY == "")
                                                { GDFY = 0; }
                                                //折旧费
                                                var ZJF = document.getElementById("txtZJF").value;
                                                if (ZJF == "")
                                                { ZJF = 0; }
                                                //其他变动费用
                                                var QTBDFY = document.getElementById("txtQTBDFY").value;
                                                if (QTBDFY == "")
                                                { QTBDFY = 0; }
                                                var zonghe = parseFloat(DJCLCB) + parseFloat(GDFY) + parseFloat(ZJF) + parseFloat(QTBDFY);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtDJCB").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtDJCB" runat="server" onblur="getYY()" />
                                        <asp:RequiredFieldValidator ID="DJCB_Null_Check" runat="server" Width="5px" ControlToValidate="txtDJCB"
                                            Display="Dynamic" ErrorMessage="单井成本不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        盈余:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getYY() {
                                                //单井收入
                                                var DJSR = document.getElementById("txtDJSR").value;
                                                if (DJSR == "")
                                                { DJSR = 0; }
                                                //单井成本
                                                var DJCB = document.getElementById("txtDJCB").value;
                                                if (DJCB == "")
                                                { DJCB = 0; }
                                                var zonghe = parseFloat(DJSR) - parseFloat(DJCB);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtYY").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtYY" runat="server" />
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td bgcolor="#ffffff" class="r_bg">
                                    </td>
                                    <td bgcolor="#ffffff" class="right_bg">
                                    </td>
                                    <td bgcolor="#ffffff" class="r_bg">
                                    </td>
                                    <td bgcolor="#ffffff" class="right_bg">
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td bgcolor="#ffffff" class="r_bg">
                                    </td>
                                    <td bgcolor="#ffffff" class="right_bg">
                                    </td>
                                    <td bgcolor="#ffffff" class="r_bg">
                                    </td>
                                    <td bgcolor="#ffffff" class="right_bg">
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td bgcolor="#ffffff" class="r_bg">
                                    </td>
                                    <td bgcolor="#ffffff" class="right_bg" colspan="3">
                                        <asp:Button ID="btnAdd" runat="server" CssClass="submit" Text=" 保存 " OnClick="btnAdd_Click" />
                                        <asp:Button ID="btnReport" runat="server" CssClass="submit" Text=" 报表 " PostBackUrl="TB_DJSKCBDReport.aspx"
                                            CausesValidation="false" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="margin-top: 0px; vertical-align: top;">
                            <table cellpadding="1" cellspacing="1" border="0" class="tabGg" width="100%">
                                <tr bgcolor="#FFFFFF" height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪型:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="true" DataTextField="QX"
                                            DataValueField="QX" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                            <asp:ListItem Value="">请选择</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪型2:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="DropDownList2" runat="server" Width="100px" AppendDataBoundItems="true"
                                            DataTextField="ZYLQX" DataValueField="ZYLQX">
                                            <asp:ListItem Value="">请选择</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr bgcolor="#FFFFFF" height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹型:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="DropDownList3" runat="server" AppendDataBoundItems="true" DataTextField="DX"
                                            DataValueField="DX" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged1">
                                            <asp:ListItem Value="">请选择</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        施工方式:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:DropDownList ID="DropDownList4" runat="server" AppendDataBoundItems="true" Width="100px"
                                            DataTextField="SGFS" DataValueField="SGFS" AutoPostBack="true" OnSelectedIndexChanged="DropDownList4_SelectedIndexChanged">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Width="5px"
                                            ControlToValidate="ddlst_SGFS" Display="Dynamic" ErrorMessage="施工方式不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        单井收入:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtDJSRDB" runat="server" onblur="getYYDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Width="5px"
                                            ControlToValidate="txtDJSR" Display="Dynamic" ErrorMessage="单井收入不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹数(发):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function GetDHeDB() {
                                                var DS = document.getElementById("txtDSDB").value;
                                                if (DS == "") {
                                                    DS = 0;
                                                }
                                                var DDJ = document.getElementById("txtDDJDB").value;
                                                if (DDJ == "") {
                                                    DDJ = 0;
                                                }
                                                var he = parseFloat(DS) * parseFloat(DDJ);
                                                he = he.toFixed(2);
                                                document.getElementById("txtDJEDB").value = he;
                                                document.getElementById("txtDJESJDB").value = he;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtDSDB" runat="server" onblur="GetDHeDB();" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Width="5px"
                                            ControlToValidate="txtDSDB" Display="Dynamic" ErrorMessage="弹数不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" Width="5px"
                                            ControlToValidate="txtDS" Display="Dynamic" ErrorMessage="弹数应为数字" Height="5px"
                                            ValidationExpression="^[0-9]*$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹单价(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtDDJDB" runat="server" onblur="GetDHeDB();" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Width="5px"
                                            ControlToValidate="txtDDJDB" Display="Dynamic" ErrorMessage="弹单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" Width="5px"
                                            ControlToValidate="txtDDJ" Display="Dynamic" ErrorMessage="弹单价应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹金额(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtDJEDB" runat="server" onblur="getQDhejiDB()" />
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        弹金额(数值):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtDJESJDB" runat="server" />
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪长(米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQCDB" runat="server" onblur="GetCHeDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Width="5px"
                                            ControlToValidate="txtQC" Display="Dynamic" ErrorMessage="枪长不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" Width="5px"
                                            ControlToValidate="txtQC" Display="Dynamic" ErrorMessage="枪长应为数字，可以保留两位小数" Height="5px"
                                            ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪单价(元/米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQDJDB" runat="server" onblur="GetCHeDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Width="5px"
                                            ControlToValidate="txtQDJ" Display="Dynamic" ErrorMessage="枪单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator16" runat="server"
                                            Width="5px" ControlToValidate="txtQDJ" Display="Dynamic" ErrorMessage="枪单价应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪长2(米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQC2DB" runat="server" onblur="GetCHeDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" Width="5px"
                                            ControlToValidate="txtQC2" Display="Dynamic" ErrorMessage="枪长2不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator24" runat="server"
                                            Width="5px" ControlToValidate="txtQC2" Display="Dynamic" ErrorMessage="枪长2应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪单价2(元/米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQDJ2DB" runat="server" onblur="GetCHeDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" Width="5px"
                                            ControlToValidate="txtQDJ2" Display="Dynamic" ErrorMessage="枪单价2不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator25" runat="server"
                                            Width="5px" ControlToValidate="txtQDJ2" Display="Dynamic" ErrorMessage="枪单价2应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪金额:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function GetCHeDB() {
                                                var QC = document.getElementById("txtQCDB").value;
                                                if (QC == "") {
                                                    QC = 0;
                                                }
                                                var QDJ = document.getElementById("txtQDJDB").value;
                                                if (QDJ == "") {
                                                    QDJ = 0;
                                                }
                                                var QC2 = document.getElementById("txtQC2DB").value;
                                                if (QC2 == "") {
                                                    QC2 = 0;
                                                }
                                                var QDJ2 = document.getElementById("txtQDJ2DB").value;
                                                if (QDJ2 == "") {
                                                    QDJ2 = 0;
                                                }
                                                var he = parseFloat(QC) * parseFloat(QDJ);

                                                var he2 = parseFloat(QC2) * parseFloat(QDJ2);

                                                var zonghe = parseFloat(he) + parseFloat(he2);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtQJEDB").value = zonghe;
                                                document.getElementById("txtQJESZDB").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtQJEDB" runat="server" Height="18px" onblur="getQDhejiDB()" />
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪金额数值:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtQJESZDB" runat="server" />
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        夹层枪长(米):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJCQCDB" runat="server" onblur="GetJCQHeDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" Width="5px"
                                            ControlToValidate="txtJCQC" Display="Dynamic" ErrorMessage="夹层枪长不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator26" runat="server"
                                            Width="5px" ControlToValidate="txtJCQC" Display="Dynamic" ErrorMessage="夹层枪长应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        夹层枪单价(米/元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJCQDJDB" runat="server" onblur="GetJCQHeDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" Width="5px"
                                            ControlToValidate="txtJCQDJ" Display="Dynamic" ErrorMessage="夹层枪单价不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator27" runat="server"
                                            Width="5px" ControlToValidate="txtJCQDJ" Display="Dynamic" ErrorMessage="夹层枪单价应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        夹层枪金额(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function GetJCQHeDB() {
                                                var JCQC = document.getElementById("txtJCQCDB").value;
                                                if (JCQC == "") {
                                                    JCQC = 0;
                                                }
                                                var JCQDJ = document.getElementById("txtJCQDJDB").value;
                                                if (JCQDJ == "") {
                                                    JCQDJ = 0;
                                                }

                                                var he = parseFloat(JCQC) * parseFloat(JCQDJ);

                                                he = he.toFixed(2);
                                                document.getElementById("txtJCQJEDB").value = he;
                                                document.getElementById("txtJCQJESZDB").value = he;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtJCQJEDB" runat="server" onblur="getQDhejiDB()" />
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        夹层枪金额(数值):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtJCQJESZDB" runat="server" />
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        枪、弹合计金额(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getQDhejiDB() {
                                                var QJE = document.getElementById("txtQJEDB").value;
                                                if (QJE == "")
                                                { QJE = 0; }
                                                var JCQJE = document.getElementById("txtJCQJEDB").value;
                                                if (JCQJE == "")
                                                { JCQJE = 0; }
                                                var DJE = document.getElementById("txtDJEDB").value;
                                                if (DJE == "")
                                                { DJE = 0; }
                                                var zonghe = parseFloat(QJE) + parseFloat(JCQJE) + parseFloat(DJE);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtQDHJJEDB").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtQDHJJEDB" runat="server" onblur="getDJCLCBDB()" />
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        爆炸器材单井消耗(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <asp:TextBox ID="txtBZQCDJXHDB" runat="server" onblur="getDJCLCBDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" Width="5px"
                                            ControlToValidate="txtBZQCDJXH" Display="Dynamic" ErrorMessage="爆炸器材单井消耗不能为空"
                                            Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator28" runat="server"
                                            Width="5px" ControlToValidate="txtBZQCDJXH" Display="Dynamic" ErrorMessage="爆炸器材单井消耗应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        一般材料单井消耗(元):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getPTYBCLDB() {
                                                var YBCLDJXH = document.getElementById("txtYBCLDJXHDB").value;
                                                if (YBCLDJXH == "")
                                                { YBCLDJXH = 0; }
                                                var SGFS = document.getElementById("DropDownList4").value;
                                                if (SGFS != "" && SGFS == "复合管输")
                                                { SGFS = 2120.92; }
                                                else {
                                                    SGFS = 0;
                                                }

                                                var zonghe = parseFloat(YBCLDJXH) + parseFloat(SGFS);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtPTYBCLDB").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtYBCLDJXHDB" runat="server" onblur="getPTYBCLDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" Width="5px"
                                            ControlToValidate="txtYBCLDJXH" Display="Dynamic" ErrorMessage="一般材料单井消耗不能为空"
                                            Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator29" runat="server"
                                            Width="5px" ControlToValidate="txtYBCLDJXH" Display="Dynamic" ErrorMessage="一般材料单井消耗应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        平摊一般材料:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg" onblur="getDJCLCBDB()">
                                        <asp:TextBox ID="txtPTYBCLDB" runat="server" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" Width="5px"
                                            ControlToValidate="txtPTYBCL" Display="Dynamic" ErrorMessage="平摊一般材料不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator30" runat="server"
                                            Width="5px" ControlToValidate="txtPTYBCL" Display="Dynamic" ErrorMessage="平摊一般材料应为数字，可以保留两位小数"
                                            Height="5px" ValidationExpression="^[0-9]+(.[0-9]{2})?$">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        单井材料成本(元/口):
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getDJCLCBDB() {
                                                var QDHJJE = document.getElementById("txtQDHJJEDB").value;
                                                if (QDHJJE == "")
                                                { QDHJJE = 0; }
                                                var BZQCDJXH = document.getElementById("txtBZQCDJXHDB").value;
                                                if (BZQCDJXH == "")
                                                { BZQCDJXH = 0; }
                                                var PTYBCL = document.getElementById("txtPTYBCLDB").value;
                                                if (PTYBCL == "")
                                                { PTYBCL = 0; }
                                                var zonghe = parseFloat(QDHJJE) + parseFloat(BZQCDJXH) + parseFloat(PTYBCL);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtDJCLCBDB").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtDJCLCBDB" runat="server" onblur="getDJCBDB()" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" Width="5px"
                                            ControlToValidate="txtDJCLCB" Display="Dynamic" ErrorMessage="单井材料成本不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        单井成本:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getDJCBDB() {
                                                //单井材料成本
                                                var DJCLCB = document.getElementById("txtDJCLCBDB").value;
                                                if (DJCLCB == "")
                                                { DJCLCB = 0; }
                                                //固定费用
                                                var GDFY = document.getElementById("txtGDFY").value;
                                                if (GDFY == "")
                                                { GDFY = 0; }
                                                //折旧费
                                                var ZJF = document.getElementById("txtZJF").value;
                                                if (ZJF == "")
                                                { ZJF = 0; }
                                                //其他变动费用
                                                var QTBDFY = document.getElementById("txtQTBDFY").value;
                                                if (QTBDFY == "")
                                                { QTBDFY = 0; }
                                                var zonghe = parseFloat(DJCLCB) + parseFloat(GDFY) + parseFloat(ZJF) + parseFloat(QTBDFY);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtDJCBDB").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtDJCBDB" runat="server" onblur="getYYDB()" Height="18px" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" Width="5px"
                                            ControlToValidate="txtDJCB" Display="Dynamic" ErrorMessage="单井成本不能为空" Height="5px">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="30%" bgcolor="#FFFFFF" class="r_bg">
                                        盈余:
                                    </td>
                                    <td width="20%" bgcolor="#ffffff" class="l_bg">
                                        <script type="text/javascript">
                                            function getYYDB() {
                                                //单井收入
                                                var DJSR = document.getElementById("txtDJSRDB").value;
                                                if (DJSR == "")
                                                { DJSR = 0; }
                                                //单井成本
                                                var DJCB = document.getElementById("txtDJCBDB").value;
                                                if (DJCB == "")
                                                { DJCB = 0; }
                                                var zonghe = parseFloat(DJSR) - parseFloat(DJCB);
                                                zonghe = zonghe.toFixed(2);
                                                document.getElementById("txtYYDB").value = zonghe;
                                            }
                                        </script>
                                        <asp:TextBox ID="txtYYDB" runat="server" />
                                    </td>
                                </tr>
                                <tr height="25px">
                                    <td bgcolor="#ffffff" class="r_bg">
                                    </td>
                                    <td bgcolor="#ffffff" class="right_bg" colspan="3">
                                        <asp:Button ID="brn_DB" runat="server" CssClass="submit" Text=" 数据对比 " 
                                            CausesValidation="false" onclick="brn_DB_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <p>
        &nbsp;&nbsp;
    </p>
    <p>
        <asp:Label ID="lblMsg" ForeColor="Red" runat="server" Text=""></asp:Label>
        <asp:ValidationSummary ID="ValidationSummary" EnableViewState="False" runat="server"
            DisplayMode="BulletList" HeaderText="请更正以下错误:" ShowMessageBox="True" ShowSummary="False">
        </asp:ValidationSummary>
    </p>
    <asp:HiddenField ID="hidId" runat="server" />
    </form>
</body>
</html>
